<div class="user_head_info">
    <div class="user_ava"> 
        <?php if($user['avatar']) : ?>
        <img src="/images/uploads/userAvatars/<?php echo $user['avatar']; ?>" style="width:30px; height: 30px;"/>
        <?php else : ?>
        <img src="/images/prettyImg/default-avatarl.jpg" width="45px" alt="" />
        <?php endif; ?>
    </div>    
    <span class="profile_username"><?php echo $user['displayName']; ?></span><br/>
   <span class="last_login">Последний раз был   <?php echo Yii::app()->dateFormatter->format("dd MMMM в HH:mm", Yii::app()->user->getState('logDate')); ?></span> 
  
</div>


<?php $this->renderPartial('//partials/userMenu', array('userName'=>$user['login'], 'countNewComments'=>$this->countNewComments['count'], 'countNewMessages'=>$this->countNewMessages['count'],'curent'=>'comments')); ?>

<div class="padding040">
<h2 class="profil_h2">Коментарии</h2>
<?php if(!empty($revComments)) : ?>
         
        
        <?php for($i=0, $j=0; $i<count($revComments); $i++, $j++) : ?>
        
            <?php $paramsArr = array('url'=>$revComments[$i]['url'], 'partnerUrl'=>$revComments[$i]['partnerUrl'], 'catId'=>$revComments[$i]['catId']) ; ?>
          
            <div class="profil_review_header"><span class="dark"> <?php echo $revComments[$i]['catName'].'</span> | '.$revComments[$i]['name']; ?>

            <?php if(!empty($revComments[$i]['subCats'])) : ?>
                      <ul  class="inline unstyled profile_subcats">
                <?php for($l=0; $l<count($revComments[$i]['subCats']); $l++) : ?>
                     <li class="subcats<?php echo $l;  ?>">
                        <a href="<?php echo Yii::app()->createUrl('partner/default/cat', array('catId'=>$revComments[$i]['subCats'][$l]['catId'], 'parentId'=>$revComments[$i]['subCats'][$l]['parentId'])); ?>"> <?php echo $revComments[$i]['subCats'][$l]['name']; ?> </a>
                  </li>&nbsp;&nbsp;
                <?php endfor; ?>
                      </ul>  
            <?php endif; ?> 
            </div>
            <div class="last_comment">
                 <?php if(!empty($revComments[$i]['title'])) : ?>
                <a class="head" href="<?php echo Yii::app()->createUrl('partner/profile/review', $paramsArr).'#comment'; ?>"><?php echo   CPartnerkiHelper::getShortText($revComments[$i]['title'], 80); ?></a>
                <?php else : ?>
                    <a class="head" href="<?php echo Yii::app()->createUrl('partner/profile/review', $paramsArr);?>">...</a>
                <?php endif; ?>
                <div class="short_conmment">    
                <div class="reviews_date"> <?php echo Yii::app()->dateFormatter->format("dd MMMM yyyy ", $revComments[$i]['date']); ?></div>
                <?php  echo CPartnerkiHelper::getShortText($revComments[$i]['text'], 250); ?>
                </div>
            </div>             
        <?php endfor; ?>
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
<?php else : ?>
    Пользователь пока не оставил ни одного комментария.
<?php endif; ?>

<div class="pages">
    <?php $this->widget('CLinkPager', array('pages' => $pagination)); ?> 
</div>  
    
</div>    